﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows;

namespace TouchUmlUI
{
    public class ToolTipPanel
    {
        public static StackPanel createStackPanel(String header,String message)
        {
            StackPanel sp = new StackPanel();
            TextBlock headerBlock = new TextBlock();
            TextBlock messageBlock = new TextBlock();
            headerBlock.FontSize = messageBlock.FontSize = 11;            
            headerBlock.Text = header;
            headerBlock.FontWeight = FontWeights.Bold;            
            messageBlock.Text = message;
            sp.Children.Add(headerBlock);
            sp.Children.Add(messageBlock);
            sp.Opacity = 0.8;
            return sp;
        }
    }
}
